from flask import Flask,request,redirect,url_for,render_template

# 创建应用实例
app = Flask(__name__)

# 加载模型文件
from settings import *
db = defineSettings(app)
defineSettingsExecute(db)

# 加载视图文件
from views import *
AuthViews.defineAuthViews(app,db)
UserViews.defineUserViews(app,db)
AdminViews.defineAdminViews(app,db)

if __name__ == '__main__':
    app.run(debug=True)



